import React, { Component } from 'react'
import {Link,Route,NavLink} from 'react-router-dom'
import MyNavLink from './components/MyNavLink'
import Header from './components/Header'
import Abourt from './pages/Abourt'
import Home from './pages/Home'


export default class App extends Component {



 
  render() {
    return (
      <div >
        
        <Header />
        <div className="row">
					<div className="col-xs-2 col-xs-offset-2">
						<div className="list-group">
            
              <MyNavLink to="/about">About</MyNavLink>
              <MyNavLink to="/Home">Home</MyNavLink>
						</div>
					</div>
					<div className="col-xs-6">
						<div className="panel">
							<div className="panel-body">
								{/* 注册路由 */}
								<Route path="/about" component={Abourt}/>
								<Route path="/home" component={Home}/>
								
							</div>
						</div>
					</div>
				</div>


     
      </div>
    )
  }
}
